class Role < ActiveRecord::Base

   set_table_name :user_roles

   has_and_belongs_to_many :users, :join_table => :user_has_role

   validates :title, :length => {:within => 2..30}
   #validates_inclusion_of :title, :in => ["admin", "user_w_e_r_d", "user_r_e", "user_r", "guest", "registered_user"]
end
